import http from '../common/axios.js'
//添加收藏
function add(id){
		let url='user/collection/insert?id='+id
		return http.get(url).then(res=>{
			return res;
		})	
}

//获取收藏
function get(){
		let url='user/collection/get'
		return http.get(url).then(res=>{
			return res;
		})	
}

export default{
	add,
	get
}